<?php

/**
 * @Author: Eden
 * @Date:   2019-07-01 18:10:47
 * @Last Modified by:   Eden
 * @Last Modified time: 2019-07-10 15:48:24
 */
namespace App\Transformers;

use App\Models\Project;
use League\Fractal\TransformerAbstract;

class ProjectTransformer extends TransformerAbstract
{
	public function transform(Project $project)
	{
		return [
			'id' => $project->id,
			'name' => $project->name,
			'info' => $project->info,
			'type' => $project->type,
			'group_standard' => $project->group_standard,
			'install_standard' => $project->install_standard,
			'response_time' => $project->response_time,
			'change_standard' => $project->change_standard,
			'created_at' => $project->created_at->toDateTimeString(),
			'updated_at' => $project->updated_at->toDateTimeString(),
		];
	}

}